function [pos] = optimal_constrain(pix,rss0,n,rss, fillvalue, pixnumber, prev, A,b,width,height,residue,diff)
options = optimoptions('fmincon', 'MaxIter', 100);
[~, pos] =  evalc('fmincon(@(t)(costfunction_constrain_ab(t,rss0,n, pix, rss, fillvalue, pixnumber,residue, A, b, diff)), prev,[],[],[],[],[0,0],[width,height],[],options)');
%pos=fmincon(@(t)(costfunction_constrain_ab(t,rss0,n, pix, rss, fillvalue, pixnumber,residue, A, b, diff)), prev,[],[],[],[],[0,0],[width,height],[],options);
%save db_coptab.mat
end
